<admintpl file="header" />
<style type="text/css">
.pic-list li {
	margin-bottom: 5px;
}
</style>
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:U('AdminDriver/index')}">驾驶员信息</a></li>
			<li class="active"><a href="{:U('AdminDriver/add',array('id'=>empty($item['id'])?'':$item['id']))}" target="_self">添加驾驶员</a></li>
		</ul>
		<form action="{:U('AdminDriver/add_post')}" method="post" class="form-horizontal js-ajax-forms" enctype="multipart/form-data" onsubmit="return checkform();">
			<div class="row-fluid">
				<div class="span9">
					<table class="table table-bordered">
                        <if condition="$is_manager">
                        <tr>
                            <th>物流公司<span class="form-required">*</span></th>
                            <td>
                                <select name="lid" id="lid">
                                    <foreach name="logistics_list" item="vo">
                                    <option value="{$vo.id}" <if condition="$vo['id'] == $item['lid']">selected</if>>{$vo.logistics_name}</option>
                                    </foreach>
                                </select>
                            </td>
                        </tr>
                        </if>

						<tr>
							<th>姓名<span class="form-required">*</span></th>
							<td><input type="text" class="require" name="driver_name" id="driver_name" value="{$item.driver_name}" style="width: 400px" placeholder="请输入姓名"> </td>
						</tr>
                        <tr>
                            <th>生日<span class="form-required">*</span></th>
                            <td><input type="text" name="birth" id="birth" value="<if condition="empty($item['birth'])">{:date('Y-m-d',time())}<else/>{$item.birth}</if>" class="js-date require" style="width: 400px" > </td>
                        </tr>
                        <tr>
                            <th>年龄<span class="form-required">*</span></th>
                            <td><input type="text" name="age" class="require number" id="age" value="{$item.age}" style="width: 400px" placeholder="请输入年龄"> </td>
                        </tr>
                        <tr>
                            <th>性别<span class="form-required">*</span></th>
                            <td>
                                <input name="gender" type="radio" value="1" <if condition="$item['gender'] == 1">checked</if> />&nbsp;男&nbsp;&nbsp;
                                <input name="gender" type="radio" value="2" <if condition="$item['gender'] != 1">checked</if> />&nbsp;女
                            </td>
                        </tr>
                        <tr>
                            <th>驾驶证号码<span class="form-required">*</span></th>
                            <td><input type="text" class="require" name="driver_licence" id="driver_licence" value="{$item.driver_licence}" style="width: 400px" placeholder="请输入驾驶证号码"> </td>
                        </tr>
                        <tr>
                            <th>手机号<span class="form-required">*</span></th>
                            <td><input type="text" class="require phone" name="phone" id="phone" value="{$item.phone}" style="width: 400px" placeholder="请输入手机号"> </td>
                        </tr>
                        <tr>
                            <th>身份证<span class="form-required">*</span></th>
                            <td><input type="text" name="identify" class="require" id="identify" value="{$item.identify}" style="width: 400px" placeholder="请输入身份证"> </td>
                        </tr>
                        <tr>
                            <th>紧急联系电话<span class="form-required">*</span></th>
                            <td><input type="text" name="emerg_phone" class="require" id="emerg_phone" value="{$item.emerg_phone}" style="width: 400px" placeholder="请输入紧急联系电话"> </td>
                        </tr>
                        <tr>
                            <th>通信地址<span class="form-required">*</span></th>
                            <td><input type="text" name="address" class="require" id="address" value="{$item.address}" style="width: 400px" placeholder="请输入通信地址"> </td>
                        </tr>

                    </table>
				</div>

			</div>
			<div class="form-actions">
                <input type="hidden" name="id" value="{$item.id}"/>
				<button class="btn btn-primary js-ajax-submit" type="submit">提交</button>
				<a class="btn" href="{:U('AdminDriver/index')}">返回</a>
			</div>
		</form>
	</div>
	<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>

	</body>
</html>